#{extends 'Admin.html'/}
#{set title:'Admin -> Input App' /}


<h1>Nhap hang</h1>
<div class="adminTitleIntro">Su dung de nhap 1 hang</div>

#{form @Brands.save(), class:"simpleForm", enctype:'multipart/form-data', id:"formTopic"}
<input type="hidden" value="${dto.id}" name="dto.id">

<p>
    <label> Language : </label>
    <input type="text" value="${lang}" name="dto.language" disabled="true">
</p>

<p>
    <label> Title : </label> <input type="text" value="${dto.title}" name="dto.title">
</p>

<p>
    <label> Homepage : </label> <input type="text" value="${dto.homepage}" name="dto.homepage">
</p>

<p>
    <label> Order : </label> <input type="text" value="${dto.order}" name="dto.order">
</p>

<p>
    <label> Logo: </label>
    <img src="@{User.getBrandImage(dto.id)}" alt="">
    <br>
    <label>&nbsp;</label>
    <input type="file" name="dto.photo">
</p>

<br class="clearfloat">

<div class="controls">
    <input type="submit" value="Save" />
    <input type="button" value="Cancel" onclick="document.href = '/brands/list'"/>
</div>
#{/form}






